package qqtalk.user;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DBUtils {
    //数据库Url
    private static final String URL="jdbc:mysql://localhost:3306/cms";
    private static final String userId="root";//数据库用户名
    private static final String passwd="000528";//登录密码
    public static Connection getConnection() throws SQLException {
        return DriverManager.getConnection(URL, userId, passwd);
    }//end getConnection
}//end class